﻿<usr:UserControlBase  x:Class="WPF.TestEditor.Controls.History.HistoryView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:usr="clr-namespace:WPF.TestEditor.Controls"
             xmlns:AvalonTree="clr-namespace:ICSharpCode.TreeView;assembly=ICSharpCode.TreeView"
             xmlns:local="clr-namespace:WPF.TestEditor.Controls.History"
             mc:Ignorable="d"              
             d:DesignHeight="300" d:DesignWidth="500">
    <UserControl.Resources>
        <ResourceDictionary>
            <Style x:Key="pnlCurPath" TargetType="StackPanel">
                <Setter Property="Margin" Value="5 0 5 0"/>                
            </Style>
            <Style x:Key="historyPathInfoIcon" TargetType="Image">
                <Setter Property="Width" Value="18"/>
                <Setter Property="Height" Value="18"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
            </Style>
            <Style x:Key="historyPathInfoText" TargetType="TextBlock">                
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Margin" Value="2 0 10 0"/>
                <Setter Property="Foreground" Value="{DynamicResource HoverHyperlinkForegroundBrush}"/>
                <Setter Property="Opacity" Value="0.5"/>
                <Style.Triggers>
                    <Trigger Property="IsEnabled" Value="False">
                        <Setter Property="Foreground" Value="{DynamicResource MenuItemDisabledBrush}"/>
                    </Trigger>
                    <Trigger Property="IsMouseOver" Value="True">
                        <Setter Property="Opacity" Value="1"/>
                        <Setter Property="Foreground" Value="{DynamicResource AccentColorBrush}"/>
                    </Trigger>
                </Style.Triggers>
            </Style>
            <Style x:Key="historyPathInfoSeparator" TargetType="TextBlock">
                <Setter Property="Text" Value="&lt;"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Foreground" Value="{DynamicResource HoverHyperlinkForegroundBrush}"/>
                <Setter Property="Opacity" Value="0.5"/>
                <Setter Property="Margin" Value="0 0 5 0"/>
            </Style>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid Name="grdLayout">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" Style="{DynamicResource metroScrollViewer}">
            <AvalonTree:SharpTreeView Name="trvHistory" ShowLines="True" ShowRoot="True" SelectionChanged="trvHistory_SelectionChanged">
        
            </AvalonTree:SharpTreeView>
        </ScrollViewer>
        <GridSplitter Grid.Column="1" Width="5" HorizontalAlignment="Center" VerticalAlignment="Stretch" Background="Transparent" ShowsPreview="True" />
        <Border Grid.Column="2" BorderBrush="Gray" BorderThickness="1">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="40"/>
                    </Grid.RowDefinitions>
                    <StackPanel x:Name="pnlCurrentPath"  Orientation="Horizontal" Style="{DynamicResource pnlCurPath}"/>
                    <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"  Style="{DynamicResource metroScrollViewer}">
                        <StackPanel Orientation="Vertical" x:Name="stackInfoPanel">

                        </StackPanel>
                    </ScrollViewer>
                </Grid>
        </Border>
    </Grid>
</usr:UserControlBase>
